package com.day01_Array;

/**
 * @ClassName: Test04
 * @Author: 豆豆在睡觉
 * @Create 2024/2/24-18:37
 * @Version 1.0
 */
public class Test04 {
    public static void main(String[] args) {
        // 求最值
        int [] arr = {1,33,452,56,885,334,24};
        int maxV = arr[0];
        for (int i = 1; i < arr.length ; i++) {
            if (maxV < arr[i]) {
                maxV = arr[i];
            }
        }
        System.out.println("求得数组最大值是:" + maxV);
    }
}
